package com.motherchild.admin.mapper;

import com.motherchild.admin.dto.InventoryRecordDTO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface InventoryMapper {
    List<InventoryRecordDTO> selectInventoryRecords();
    List<InventoryRecordDTO> getStockRecordList();
    void insertInventoryRecord(InventoryRecordDTO recordDTO);

    void updateStock(InventoryRecordDTO recordDTO);


    String getProductById(Long productId);

    void updateStock1(InventoryRecordDTO recordDTO);

    List<InventoryRecordDTO> selectInventorysRecords(String name);

    List<InventoryRecordDTO> selectRecords(String name);
}